{% for message in messages -%}
<| {{ message.role }}{{ f" {message.name}" if message.name else "" }} |>
{{ message.content }}
{% endfor %}